package com.ebelter.btlibrary.btble.impl.ichoice;

import com.ebelter.btlibrary.btble.ble.bluetooth.device.impl.BleCommandEditor;
import com.ebelter.btlibrary.btble.impl.scale.model.ScaleCommand;
import com.ebelter.btlibrary.util.ULog;

/**
 * 血氧仪指令编辑器实现层
 * Created by Sergio Pan on 2017/12/8.
 */

public class IChoiceCommondEditor extends BleCommandEditor {

    private static final String TAG = "IChoiceCommondEditor";

    private static IChoiceCommondEditor instance = new IChoiceCommondEditor();

    private IChoiceCommondEditor() {
    }

    public static IChoiceCommondEditor getInstance() {
        return instance;
    }


    @Override
    protected void onReceiveCommand(Object command) {
        ScaleCommand scaleCommand = (ScaleCommand) command;
        ULog.i(TAG, "-------onReceiveCommand-------scaleCommand = " + scaleCommand);
    }

    public void sendInit(){
        byte[] bytes = {
                (byte) 0xaa,
                0x55,
                0x04,
                (byte) 0xb1,
                0x00,
                0x00,
                (byte) 0xb5
        };
        sendBleMessage(bytes);
    }



}
